#include "EuropeanProduct.h"


double EuropeanProduct::getExpiry() const
{
	return m_expiry;
}

EuropeanProduct::EuropeanProduct(const PayOffBridge& payoff,double expiry)
	:m_expiry(expiry),m_payoff(payoff)
{
}
double EuropeanProduct::calcFinalPayOff(double spot) const
{
	return m_payoff(spot);
}
double EuropeanProduct::calcMidPayOff(double spot, double time,double discountedPayOff) const
{
	return discountedPayOff;
}
EuropeanProduct* EuropeanProduct::clone() const
{
	return new EuropeanProduct(*this);
}